<template>
    <el-carousel :interval="5000" arrow="always" class="body" height="95vh">
        <el-carousel-item v-for="item in 4" :key="item">
            <div class="container">
                <header class="header">
                    <h1>新医智疗，让健康少些等待</h1>
                    <p>
                        新医智疗采用人工智能大模型技术，为医疗行业提供更加智能、高效的解决方案，让医疗更加便捷。
                    </p>
                    <a href="#/home" class="cta-button">开始体验</a>
                </header>
                <section class="features">
                    <div class="feature">
                        <h2>医疗大语言模型</h2>
                        <p>国内领先的医疗领域GPT模型</p>
                        <a href="#" class="detail-link">查看详情</a>
                    </div>
                    <div class="feature">
                        <h2>医疗数据更全面</h2>
                        <p>汇集海量权威医疗数据，涵盖各科室疾病知识、诊疗方案与专家经验</p>
                    </div>
                    <div class="feature">
                        <h2>任务模型更准确</h2>
                        <p>对专业医学领域任务进行针对性微调训练，结合专家反馈，快速提升任务准确性</p>
                    </div>
                </section>
            </div>
        </el-carousel-item>
    </el-carousel>
</template>

<script setup>

</script>

<style lang="scss" scoped>

.container {
    height: 95vh;
    box-sizing: border-box;
    padding: 50px 20px;
    background-color: #f9f9f9;
    position: relative;
    background-image: url('../assets/images/lock-bg.jpg');
    background-size: cover;
}

.header {
    margin: 4rem;
}

.header h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
}

.header p {
    width: 50%;
    font-size: 2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3478f6;
    color: #fff;
    font-size: 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2b63d1;
}

.features {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100-4rem;
    bottom: 6rem;
    padding: 0 2rem;
}

.feature {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.feature h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.detail-link {
    color: #3478f6;
    text-decoration: none;
    font-weight: bold;
}

.detail-link:hover {
    text-decoration: underline;
}

</style>